package com.etoak.service.impl;

import com.etoak.entity.TypicalProblem;
import com.etoak.mapper.TypicalProblemMapper;
import com.etoak.service.ITypicalProblemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zhixuebin
 * @Date 2022/5/18
 */
@Service
public class TypicalProblemServiceImpl implements ITypicalProblemService {

    @Autowired
    TypicalProblemMapper typicalProblemMapper;

    @Override
    public int add(TypicalProblem typicalProblem) {
        return typicalProblemMapper.add(typicalProblem);
    }

    @Override
    public List<TypicalProblem> getList(TypicalProblem typicalProblem) {
        return typicalProblemMapper.getList(typicalProblem);
    }

    @Override
    public TypicalProblem getById(String id) {
        return typicalProblemMapper.getById(id);
    }

}
